<?php
    include "admin_goods.php";

$id=$_REQUEST['id'];
// $extend=$_REQUEST['extend'];
var_dump($id);

mysqli_select_db($conn,"shopping");

   $sql = "update coupon set extend='未领取' where id='$id'";  //SQL模板

   $result=mysqli_query($conn,$sql);

    if (!$result){
        echo '数据更新失败！';
    }else{
        echo '数据更新成功！';
    }
    
    mysqli_close($conn);
?>
